Page({
  data: {
    PageCur: 'home'
  },
  onLoad: function (options) {
  	if(options.cur){
  		this.setData({
	      PageCur: options.cur
	    })
  	}
  	console.log(wx.getStorageSync('cart'))
  },
  gengxin:function(ee){
  	this.header= this.selectComponent("#mymember");
  	console.log("调用更新");
  	this.header.geng()
  },
  setcart:function(){
  	this.setData({
	      PageCur: 'classify'
	    })
  },
  NavChange(e) {
    this.setData({
      PageCur: e.currentTarget.dataset.cur
    })
  },
  onShareAppMessage() {
    return {
      title: '优源',
      imageUrl: '/images/share.jpg',
      path: '/pages/index/index'
    }
  }
})